package com.xhwl.centiotdata.service.cent;

import com.xhwl.common.dto.cent.visitor.VisitorOpenDTO;
import com.xhwl.common.dto.cent.visitor.VisitorGroupListDTO;
import com.xhwl.common.pojo.cent.visitor.yaoan.VisitorVRExperience;
import com.xhwl.common.pojo.cent.visitor.yaoan.VisitorVRExperienceDetail;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;

import java.util.List;

/**
 * @author tangwei
 * @description 访客feign接口
 * @create 2022-11-15 8:36
 */
@FeignClient(name = "cent-visitor")
public interface IVisitorCentService {

    @RequestLine(value = "POST /visitor-feign/vr/record/add")
    void saveVisitorVrRecord(@Param("record") List<VisitorVRExperience> record);

    @RequestLine(value = "POST /visitor-feign/vr/detail/add")
    void saveVisitorVrDetail(@Param("detail") List<VisitorVRExperienceDetail> detail);

    // 访客授权分组
    @RequestLine(value = "POST /visitor-service/save/visitor/privilege/group")
    Boolean saveVisitorPrivilegeGroup(@Param("groupList") List<VisitorGroupListDTO> groupList,
                                   @Param("projectId") Integer projectId,
                                   @Param("productId") Integer productId);

    @RequestLine(value = "POST /visitor/update/openId")
    void updateOpenIdById(@Param("visitorOpenDTO") VisitorOpenDTO visitorOpenDTO);
}
